package org.example.easybuy.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.easybuy.entity.User;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
@Mapper
public interface UserDao {
    User selectUserByLoginName(String loginName);
    List<User> selectUserByNameAndTime(Map<String,Object> param);
    int deleteUser(int id);
    int registerUser(User user);
    int updateUserPass(@Param("id")int id,@Param("password")String pass);
    int updateUser(User user);
    int updateUserInfo(User user);
}
